package com.cim.dao;

import com.cim.pojo.CourseAccount;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CourseAccountDao {
    List<CourseAccount> findCourseAccount(CourseAccount ca);
    int addCourseAccount(CourseAccount ac);
    int deleteCourseAccount(String id);
    int updateCourseAccount(CourseAccount ca);
    CourseAccount findByCA(@Param("userId") String userId,@Param("courseId") String courseId);
    int deleteCourseAccountByCourseId(String courseId);
}
